<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<title>个人史</title>
<meta name="viewport"
	content="width=device-width,initial-scale=1,user-scalable=0">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="电子病历,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="<%=basePath%>css/weui.css" />
<link rel="stylesheet" href="<%=basePath%>css/example.css" />
<!-- <script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script> -->
<!-- <script type="text/javascript" src="<%=basePath%>js/jquery.js"></script> -->
<!-- <script type="text/javascript" src="js/history.js"></script> -->
<style type="text/css">
.weui_label {
	width: 8em
}
</style>
</head>
<script type="text/javascript">
var basePath="<%=basePath%>";
	$(document).ready(function() {
		var menstrualHistory = $("#menstrualHistory").val();
		if (menstrualHistory != "") {
			$("#yuejing").show();
		}
	});
	function localSel() {
		var localDiseaseSel = $("#localDiseaseSel").val();
		if(localDiseaseSel==1){
		$("#localDisease").show();
		}else{
			$("#localDisease").hide();
		}
	}
	//忽略
	function ignore(){
		 pop1();
	}
	function pop1(){
    var w_height = $(window).height();
    $('.theleftmenu').css('height',w_height);
    $('.theleftmenu').css('display','block');
       $(".historymenu").hide();
       setTimeout(function(){
		$('.historymenu,.bg_mark').css('display','none');
		$('.historymenu .leftmenu_con ').css('display','none');
							},200);
        
//       弹出边菜单
    $('.theleftmenu .bg_mark').css('display','block');
    
    $('.theleftmenu .theleftmenu_con ' ).stop().animate({ left: '0' }, 400);
     
}
</script>
<body ontouchstart>
	<div class="container js_container"></div>
		<!-- 个人病史开始 -->
		<div class="page" >
			<div class="bd">
			<form action="">
				<div class="weui_grids">
				<h1 class="page_title" style="color:#225fba">个人病史</h1>
					<div class="weui_cells_title">
						
					</div>
					<div class="weui_cell">
						<div class="weui_cell_hd">
							<label for="birthPlace" class="weui_label"><span
								style="color: red;">*</span>出生地:</label>
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="text" name="birthPlace"
								id="birthPlace" placeholder="请输入出生地" value="${bean.birthPlace }">
						</div>
					</div>

					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 教育程度：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="educationDegree"
								id="educationDegree">

								<option value="0"
									<c:if test="${bean.educationDegree==0 }">selected="selected"</c:if>>高中以下</option>
								<option value="1"
									<c:if test="${bean.educationDegree==1 }">selected="selected"</c:if>>高中</option>
								<option value="2"
									<c:if test="${bean.educationDegree==2 }">selected="selected"</c:if>>中专</option>
								<option value="3"
									<c:if test="${bean.educationDegree==3 }">selected="selected"</c:if>>大专</option>
								<option value="4"
									<c:if test="${bean.educationDegree==4 }">selected="selected"</c:if>>本科</option>
								<option value="5"
									<c:if test="${bean.educationDegree==5 }">selected="selected"</c:if>>硕士</option>
								<option value="6"
									<c:if test="${bean.educationDegree==6 }">selected="selected"</c:if>>博士</option>
								<option value="7"
									<c:if test="${bean.educationDegree==7 }">selected="selected"</c:if>>教授</option>
							</select>
						</div>
					</div>
					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 地方病/流行病：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="localDiseaseSel"
								id="localDiseaseSel" onchange="localSel();">
								
								<option value="0"<c:if test="${bean.localDisease==0 }">selected="selected"</c:if>>无</option>
							<option value="1"<c:if test="${bean.educationDegree==1 }">selected="selected"</c:if>>有</option>
							</select>
						</div>

					</div>
					<textarea class="weui_textarea" placeholder="请输入地方病/流行病" rows="3"
						id="localDisease" name="localDisease" style="display: none">${bean.localDisease }</textarea>
					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 经济状况：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="economics"
								id="economics">
								<option value="0"
									<c:if test="${bean.economics==0 }">selected="selected"</c:if>>差</option>
								<option value="1"
									<c:if test="${bean.economics==1 }">selected="selected"</c:if>>一般</option>
								<option value="2"
									<c:if test="${bean.economics==2 }">selected="selected"</c:if>>好</option>
							</select>
						</div>
					</div>
				<div class="weui_cell">
						<div class="weui_cell_hd">
							<label for="profession" class="weui_label"><span
								style="color: red;">*</span>职业:</label>
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="text" name="profession"
								id="profession" placeholder="请输入职业" value="${bean.profession }">
						</div>
					</div>
				<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 不洁性生活史：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="sexualBehavior"
								id="sexualBehavior">
								<option value="0"
									<c:if test="${bean.sexualBehavior==0 }">selected="selected"</c:if>>无</option>
								<option value="1"
									<c:if test="${bean.sexualBehavior==1 }">selected="selected"</c:if>>有</option>
							</select>
						</div>
					</div>
	<div class="weui_cells_title">现病史</div>
				<div class="weui_cells weui_cells_form">
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <textarea class="weui_textarea" placeholder="请输入现病史" rows="6" id="presentIness" name="presentIness"></textarea>
                </div>
            </div>
        </div>

				</div>
					<input type="reset" style="display:none;" /> 
			</div>
			
			</form>
					<div class="button_sp_area" style="text-align:-webkit-center;">
					<a href="javascript:;"
							class="weui_btn weui_btn_mini weui_btn_primary" onclick="ignore();">忽略</a>
					<a href="javascript:;"
							class="weui_btn weui_btn_mini weui_btn_primary" onclick="backtoperson();">上一步</a>
						 <a href="javascript:;"
							class="weui_btn weui_btn_mini weui_btn_primary" onclick="toSave();">保存</a>
					</div>
		</div>
		<!-- 个人病史结束 -->


	
	
	<!--     toast开始 -->
						<div id="loadingToast" class="weui_loading_toast"
							style="display: none;">
							<div class="weui_mask_transparent"></div>
							<div class="weui_toast">
								<div class="weui_loading">
									<div class="weui_loading_leaf weui_loading_leaf_0"></div>
									<div class="weui_loading_leaf weui_loading_leaf_1"></div>
									<div class="weui_loading_leaf weui_loading_leaf_2"></div>
									<div class="weui_loading_leaf weui_loading_leaf_3"></div>
									<div class="weui_loading_leaf weui_loading_leaf_4"></div>
									<div class="weui_loading_leaf weui_loading_leaf_5"></div>
									<div class="weui_loading_leaf weui_loading_leaf_6"></div>
									<div class="weui_loading_leaf weui_loading_leaf_7"></div>
									<div class="weui_loading_leaf weui_loading_leaf_8"></div>
									<div class="weui_loading_leaf weui_loading_leaf_9"></div>
									<div class="weui_loading_leaf weui_loading_leaf_10"></div>
									<div class="weui_loading_leaf weui_loading_leaf_11"></div>
								</div>
								<p class="weui_toast_content">保存中...</p>
							</div>
						</div>

						<div id="toast" style="display: none;">
							<div class="weui_mask_transparent"></div>
							<div class="weui_toast">
								<i class="weui_icon_toast"></i>
								<p class="weui_toast_content" id="info">保存成功</p>
							</div>
						</div>
						<!--     toast结束 -->
</body>
</html>
